package org.itboys.mobile.dto.wallet;

/**
 * Created by zhangyang on 2017/12/20.
 * 圣代_提现_账户_dto
 */
public class SundayAccountDto {

    private Long id;
    private Integer type;//类别:1-银行卡,2-支付宝,3-微信
    private String account;//账号,如果是银行卡则为银行卡号,支付宝则是支付宝账号,以此类推.
    private String bankName;//银行名称
    private String logo;//logo路径

    public SundayAccountDto() {
    }

    public SundayAccountDto(Long id, Integer type, String account, String bankName, String logo) {
        this.id = id;
        this.type = type;
        this.account = account;
        this.bankName = bankName;
        this.logo = logo;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getTypeStr(){
        String typeStr = "";
        if(type == null){
            return typeStr;
        }
        switch (type){
            case 1:
                typeStr = bankName;
                break;
            case 2:
                typeStr = "支付宝";
                break;
            case 3:
                typeStr = "微信";
                break;
            default:
                break;
        }
        return typeStr;
    }
}
